extends "../huashengdun-2/huashengdun-2.gd"

func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("本回合炮击暴击后，提高20%暴伤(上限500%)，若未暴击，则失去所有累积的爆伤", "深海狂暴")

var bf = null
func _onBattleStart():
	._onBattleStart()
	bf = addBuff(b_huashengdun3.new())

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN:
		if bf == null:
			bf = addBuff(b_huashengdun3.new())
		if atkInfo.isCri:
			if bf.att.criR < 5:
				bf.att.criR += 0.2
		else:
			if team == 1:
				bf.att.criR = 0
		
class b_huashengdun3:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_huashengdun3"
		dispel = 2